{include file="admin/header.htm"}
<form action="{$smarty.const.ADMIN_NAME}?m=admin&c=group&a=add" method="post" name="myform" onSubmit="return checkForm()">
<table cellpadding="2" cellspacing="1" class="table_form">
    <caption>{if $groupid > 0}编辑用户组{else}添加用户组{/if}</caption>
    <tr>
        <th><strong>组名</strong></th>    
        <td><input type="text" name="groupname"{if $groupid > 0} value="{$groupname}"{/if}></td>
        <td><input type="submit" name="doadd" value=" 确定 " class="button_style"></td>
    </tr>
</table>
    {if $groupid > 0}<input type="hidden" name="groupid" value="{$groupid}">{/if}
</form>
{include file="admin/footer.htm"}
<script type="text/javascript">
function checkForm() {
    if(myform.groupname.value == '') {
        alert('组名不能为空！');
        return false;
    }
    return true;
}
</script>